﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Kugar.Core.Security.Permission
{
    /// <summary>
    ///     权限信息读写类
    /// </summary>
    public abstract class PermissionInfoHandleBase
    {
        public abstract PermissionInfoAttribute[] GetAllPermissions();

        public abstract Dictionary<string, PermissionGroupInfo> GetGroupConfig();

        public abstract bool SetGoupConfig(Dictionary<string, PermissionGroupInfo> config);

        public abstract PermissionUserInfo GetUserPermission(string userID);

        public abstract bool SetUserPermission(string userID, PermissionUserInfo config);
    }
}
